package com.strato.rpc.annotation.v1_0_0;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.strato.rpc.api.v1_0_0.Registry;

@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RpcWired {
	
	String AUTO_DETECT_ID = "(AUTO)";

	String id() default AUTO_DETECT_ID;
	
	String registry() default Registry.AUTO_DETECT;
	
	/**
	 * retry times when unable to connect to target
	 * @return default 1 retry another target once
	 */
	int retry() default 1;
}
